<!DOCTYPE html>
<html>
<head>
    <title>订单详情表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("order:orderitem:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("order:orderitem:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("order:orderitem:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.orderId" placeholder="订单ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">货品ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.productId" placeholder="货品ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.goodsId" placeholder="商品ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否加急</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.urgent" placeholder="是否加急"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否可评论</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.comment" placeholder="是否可评论"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品图片地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.goodsImgUrl" placeholder="商品图片地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品的名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.name" placeholder="明细商品的名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品的销售价(购入价)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.price" placeholder="明细商品的销售价(购入价)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品总额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.amount" placeholder="明细商品总额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">分摊后价格</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.sharePrice" placeholder="分摊后价格"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品重量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.weight" placeholder="明细商品重量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品购买数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.nums" placeholder="明细商品购买数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.unit" placeholder="商品单位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品的规格属性</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.addon" placeholder="明细商品的规格属性"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品类型 product:商品,pkg:捆绑商品,gift:赠品商品,adjunct:配件商品</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.itemType" placeholder="明细商品类型 product:商品,pkg:捆绑商品,gift:赠品商品,adjunct:配件商品"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">工艺IDs</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.craftsIds" placeholder="工艺IDs"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">工艺名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.craftsNames" placeholder="工艺名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">normal：普通商品print：印刷商品design_service：设计商品quote：报价商品paper：大纸商品fold：折页template：索样商品</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.addcartBuyType" placeholder="normal：普通商品print：印刷商品design_service：设计商品quote：报价商品paper：大纸商品fold：折页template：索样商品"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细附件对象</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.itemTypeObj" placeholder="明细附件对象"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细附件对象IDs</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.itemTypeObjId" placeholder="明细附件对象IDs"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">大纸购买类型 ton:吨，ream:令</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.paperUnit" placeholder="大纸购买类型 ton:吨，ream:令"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">大纸购买规格：长，宽</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.paperSize" placeholder="大纸购买规格：长，宽"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品积分</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.score" placeholder="明细商品积分"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">审核状态</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.approvalStatus" placeholder="审核状态"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">明细商品发货数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.sendnum" placeholder="明细商品发货数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">门店货品ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.merchantsProductId" placeholder="门店货品ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">门店货品 份数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.merchantsCopy" placeholder="门店货品 份数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">伪删除标记（0正常 1删除）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.itemDel" placeholder="伪删除标记（0正常 1删除）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">模板id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.goodsTempletId" placeholder="模板id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">关联商品ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.origItemId" placeholder="关联商品ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">报价订单算价过程</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="orderItem.calculationPriceProcess" placeholder="报价订单算价过程"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/order/orderitem.js?_${.now?long}"></script>
</body>
</html>